package com.dnjn.mes.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dnjn.mes.common.core.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import org.springframework.lang.NonNull;

/**
 * <p>
 * 组件|模块表
 * </p>
 *
 * @author Amber
 * @since 2023-07-27
 */
@Getter
@Setter
@TableName("mes_assembly")
public class MesAssembly extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * PK
     */
    @TableId(value = "assembly_id", type = IdType.ASSIGN_ID)
    private Long assemblyId;

    @NonNull
    private String assemblyName;

    private String assemblyNo;

    private Integer ordinal;
    private String deleted;

    private Long equipmentId;

    /**
     * 警告状态 2-正常;1-提醒;0-警告
     */
    @TableField(exist = false)
    private Integer status;
}
